package com.athuahua.spzx.controller;

import com.athuahua.spzx.entity.Brand;
import com.athuahua.spzx.service.BrandService;
import com.athuahua.spzx.utils.Result;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: huahua
 * @Date: 2024/8/12 0012
 * @Time: 16:35
 * @Description:
 */
@Tag(name = "品牌接口管理")
@RestController
@RequestMapping("/api/product/brand")
@Slf4j
public class BrandController {

    @Resource
    private BrandService brandService;

    @GetMapping("findAll")
    public Result findAll(){
        List<Brand> list =  brandService.list();






        return Result.success(list);
    }













}
